<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>3D实例</title>
  
    <style>
        body {
            perspective: 500px;/* 透视  网页产生3D效果 */ 
        }

        .box {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 100px auto;
            transition: all 1s;/* 动画2s完成 */
            transform-style: preserve-3d;/* 动画保持3d立体环境  */
        }
        /* 浏览器的差异：  谷歌翻转度数正常， 360浏览器翻转度数有差异 */
        /* 鼠标触发X轴转动 */
        .box:hover {
            transform: rotateX(-90deg)
        }

        .box img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background-color: pink; */
        }

        /* ig:last-child  最后一个img */
        .box img:last-child {
            background-color: blueviolet;
            transform: rotateX(90deg);
        }

        img {
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="./mag/爱尚天使 - LOGO.png">
        <img src="./mag/益品惠.png" >
    </div>
</body>

</html>